package com.pro.common.file.storage.huawei.config;

import com.obs.services.ObsClient;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(ObsPropertiesContainer.class)
public class ObsConfig {

//    @Bean(destroyMethod = "close")
//    public ObsClient obsClient(ObsProperties props) {
//        return new ObsClient(props.getAccessKey(), props.getSecretKey(), props.getEndpoint());
//    }
}
